fix performance regression on 64 bit GCC 4.8.