simplify / fix cmake code for detecting -std=c++11