make DEBUGMALLOC_EXTENSIONS work under release build

Changed various wrong ifdef DEBUG to ifdef DEBUGMALLOC_EXTENSIONS