newbuild: refine cross-building