Added the CMake check for C++0x/C++11.