fix c++11 compilation