backport build change for leveldb