'C compiler cannot create executables' bug fix

For details see https://github.com/Homebrew/homebrew/pull/29298.