Fix compiler error on gcc 4.9