Use 64-bit quantities for partition size when writing MBR.