Better support for large files

Hi

While trying to mount a big cloop image, I stumpled over some limitations of your code. Most notable is the use of int for offset calculation for V3.0 images and allocation of wrong number of blocks for images not having the number of blocks in the head.