Debugging always enabled

Debugging should only happen if it is build for debugging (DEBUG is defined if compiled by XCODE for debugging/not release).