[CMAKE] Fix setting CMake build type so we can use other types too (like Release).