Move allocation with mmap here, from ralloc.c. Change