Allow mmap to be optional