fix build using 4.7 gcc