support brew build on osx