Fix 64-bit compile errors.