Fixed the cached CMake package so that the build_type field is saved in the cached configuration file.