Import lmdb 0.9.14 source.
Merge pull request #33 from minad/lmdb-0.9.14

Import lmdb 0.9.14 source.
Cleanup and bug detection in environment_free.