try to fix compile error on fedora
try to fix compile on fedora no. 2
simplify / fix cmake code for detecting -std=c++11