CMake: add -g flag for debug builds