Fix compiler error on gcc4.6