Fix 64bit-related warnings

closes #1