DEBUG definition is not supposed to be used in the kernel, rather CONFIG_DEBUG_BUILD, which can be toggled separately to user notion of DEBUG
A compile assert has no runtime or image size overhead and so there is no reason to not have them enabled This commit addresses SELFOUR-289