CMake: Improve to support build type. Default to debug.