Fix invalid usage of mmap. Fixes #13.