add osx compile patch for homebrew