Support the old mmap syscall.

Resolves #1074.