Fix fileio limits on OSX