added Allocator trait for mmap
workaround to deal with the crates externalization