Diver: Mmap TLS callbacks, various bug fixes