fix compile error & add a configuration for rocksdb