Fix compiling with g++47