CMakeLists.txt: Fix build when not specifying CMAKE_BUILD_TYPE