fix build on gcc 4.6