Fix the dependencies of rustdoc_ng doc generation

This needs libstd in its proper location to resolve references when generating
docs for libextra.
auto merge of #9393 : alexcrichton/rust/fix-docs, r=brson

This needs libstd in its proper location to resolve references when generating
docs for libextra.