mg: cross build support.