Auto-detect if a system supports mmap, switch to reading the file into memory otherwise