When building outside of Homebrew, these flags were needed. Can you provide some background on the way Homebrew handles these things?