Fix 64-bit warnings.

PR is self explanatory =)