Unreviewed build fix on CMake based ports when CMAKE_BUILD_TYPE is not given.