Compile fix for non c++11 compiler