Add support for mmap64. Move unit test to own function