added check for c++11