Fix 64-bit compiler warnings