Fix build on gcc 4.6