Support for getting dependencies given main and lib