fix warnings for 64 bit