Changed mmap.resize to ftruncate to support OS X

OS X does not support mremap. Hopefully using ftruncate is equivalent.