lmdb: added configure-time check
namedb: api + basic lmdb implementation, stub trie