Implement support for offset-based mmap

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>