Fix liblmdb.so discovery process