Fixing compilation without c++11