moved all DEBUG and _DEBUG macros to LEGACY_DEBUG for consistency also fixed the debug build