Refactoring Target.targets and link whole archives