Fix non-debug builds

Compilation fails in release mode.
- #ifdef _DEBUG is around the #include files
- one leftover "nospace" in the #else block