Fix build settings for dependencies in the VisualD generator.

Paths were relative to the dependency package path rather than the main package path where the project file is generated. Also, versions and other build settings were not only inherited from dependency to dependee, but also the other way around.