Fix compilation on gcc 4.6