Fixed package build dependency generation

Packages build target requires that the dependency is built AND installed