Make cmake_config compatible with C++11