fix build with gcc 4.7