Makefile support for build without leveldb