fix warnings on gcc 4.7