fixed some 32-bit build warnings