pescan: Adapt more functions to mmap version.