2006-02-23 insilmaril Cleaned up mmap import a bit. Started to convert flags there, too