More tweaks:

* Make arch and osmajor standalone functions, and combine host triplet
  in place.
* Integrate '--enable-languages' into args.