configure: custom macro to check for library header
configure: optional LMDB