cmake: detect whether compiler supports C++11