Add OSX support to dependency install script.