Update to latest version of leveldb

This is a host of compatibility fixes/tweak that make doorknob compatible with the latest leveldb.