Add rbe configs for bazel 7 and 8 (#2346)

Use target `@@rules_cc++cc_configure_extension+local_config_cc` instead
of `@local_config_cc` for c++ configs since the latter one no longer
exists since Bazel 8+.
2 files changed