Don't link static deps when building test crates.