Added C++11 flag checking to CMakeLists