Fix 32 bit wrapping issue in bulkRead.

This should fix downloading large (> 2G) files on 32-bit platforms.