fix some warnings on 64-bit