Automatically install dependencies in MacOS