After Adding "-DDEBUG" to the compiler options some files don't compile any more. Fix the compilation errors.