bugfix: we did not pass the -1 fd to mmap(), which resulted in a failure at least on FreeBSD. we also print out the error message when mmap() fails.