Modify Makefile for lmdb