Add more useful error message for mmap.