apply patch for c++ compiler for leveldb 1.12