CMake fix for console version