Added support for classifiers in multiproject builds

If one project has two dependencies on another project for different
classifiers in that project, this ensures that both dependencies are
included.