add check for C++11