fix build for non c++11