fn rewrite_legacy_profile_keys(dict: &mut Dict, solc_env: Option<&Value>)
Applies compiler overrides and legacy key rewrites to a profile dictionary.