fix leveldb for unix