Add ability to set debug via CMake (1.9.1)