Makes sure that CMAKE_BUILD_TYPE is either DEBUG or RELEASE