How to install dependencies for Mac OSX