fix bug in c++11 check