Encapsulate mmap in a RAII class

Signed-off-by: Thorben Hasenpusch <thorben.hasenpusch@gmail.com>