Commit WIP support for cross builds; host and target deps are built from scratch.

But it's not perfect and needs more tweaks/fixes.