Use preproc DEBUG checks instead of using a fallback DEBUG define because some clients use defined(DEBUG) as being a debug build.