Use ScopedPointer instead of deprecated auto_ptr
Disable RocksDB for older compilers