THDiskFile: workaround insane Mac OS X fread bug ID# 6434977.
Merge branch 'master' into luarocks