fix build on gcc