Add the compiler flag -DDEBUG to the debug targets in the Xcode project