Use read instead of mmap when not available.

mmap is not available on all operating systems. When mmap is not
available, simply read the file into memory using the read()
function.

Thanks to Thorsten Godau for discovering and reporting this bug.