Fix up CMAKE_BUILD_TYPE variable