Add an experimental API for working with memory mapped files.

This also updates the valgrind headers.