Merge pull request #3190 from eddyb/rextern-2

Reintroduce `extern crate` for non-Cargo dependencies, in tests.