Fix compiling on gcc-4.7