added osx compatibility, added homebrew for osx