[CB-4480] Using 64 bit ints to store file size

Thanks to Klaus Schmidt for the original patch.