fix warnings under 64-bit