Fixed compiling on gcc 4.7+