CMake: Improve to support build type. Default to release.