fix build with gcc