Import upstream toolchain changes

Complete merge of toolchain changes.

Includes:
- @sarfata 's work on linking libs statically
- @Meiguro 's work on incremental builds
- The latest from upstream, including a new code drop from mentor including an upgrade from gcc 4.7.2 to 4.73
- A change of mind to skip building the docs (due to compile errors)