Fix sparse archive creation for big files. The sparse-archive construction code was using int at numerous places for values that could be >2G. This was leading to broken archives.