Fix color encoding, mmap size, and allow nonstd mode.