Add MOJ_DEBUG and MOJ_DEBUG_LOGGING flags to debug build