Support use of namespaced environment variables based on "TARGET" and "HOST"

This is a replacement for https://github.com/rust-lang/cargo/pull/1004 and depends on  http://github.com/rust-lang/cargo/pull/1008