more cMake and a c++11 related fix