Use gcc instead of apple-gcc42 when needed.
Migrate apple-gcc42 back to homebrew/versions.

Closes #28418.