Added the CMake check for C++11.