fix gcc 4.7 build