fix for no C++ 11