Use target libraries instead of host libraries. Fixes #11243
auto merge of #11338 : jhasse/rust/patch-rustpkgtarget, r=alexcrichton