Fix compiling with gcc 4.8