Make LMDB_LIBDIR working

Please pull this change in order to make LMDB_LIBDIR working.

Thanks.