Fix gcc 4.6 build