Fix compiling with g++ and c++03