Zip: handle files larger than 4G.

Also fix various 64-bit issues.