modify the Makefile in ldb for it can find the right vendor directory

Try to fix the prolem below, try to modify the Makefile to include the right vendor path("lua-5.1.4").
Modify some unused warning in the same time.