databases/rocksdb: Clean up CXXFLAGS
(cherry picked from commit 4950c4acb71757920490a38159e1b9fa971aebe9)