make brew link conflicts_with aware

I think this should close #17330.