Fix gcc 4.7.2 compile