Fixed 64 bit compilation warnings

Fixed compilation warnings for 64 bit.