Improved configuration selection for dependencies.

Still missing a way to select a specific configuration for each dependency.
Implemented the "excludedSourceFiles" build setting.