update CMakeLists.txt for c++11