Fixups for lmdb and openldap