update build process to be able to build with homebrew on mac