Lmdb 0.9.12

Imported from https://git.gitorious.org/mdb/mdb.git.