Fix a potential issue on where a compiler-only flag like `-mmacosx-version-min=10.12` is passed to plain `ld` instead.