fixed an issue caused by a Mac/Darwin bug

On Mac/Darwin, it is not possible to read >2GB data with one fread().