- Adapt more functions to use the mmap backend.
- Better error handling.
- Prefix macros to avoid conflicts.