Run tests with the --target flag
Pass profile env vars to build commands

Closes #553
auto merge of #558 : alexcrichton/cargo/issue-553, r=brson