Support LMDB in the CMake build system