dev-db/leveldb: build libmemenv.a correctly

Change-Id: I6e485db9bcc31a0db498fedd023af349ec8ae90b