fix cmakelist.txt to enable to build c++11