Fixed build using CMake in debug mode