fix compile error for lmdb/rocksdb engine