Allow gcc 4.6+ to compile