LMDB implementation code copy/paste/modified into the Berkeley DB implementation. Need to test if it builds, then if it works, and so on, but the code is all there.
Basically verbatim copy of LMDB implementation, but with the guts ripped out and includes changed, etc.