Mac leveldb corruption fix