fix c++11 detection