Homebrew sets a bunch of flags like this for dependencies. Please try and see if it builds without them, thanks.