- Removes the usage of HAVE_MMAP (considering it is always defined).
- Removes the usage of HAVE_ICOV (considering it is always defined).
- Fixes how the layer mode is converted from the command line argument to the
  runtime code.
- Update the expected error messages in the dotest script.