Don't set build links on dry or unknown packages.