Fix leveldb build.