Try Zig's C/C++ (cross-)compiler to build both mosh and go-mosh
The Zig language toolchain includes a full-capability C/C++ compiler, with significant cross-compilation support. See: https://dev.to/kristoff/zig-makes-go-cross-compilation-just-work-29ho and (a CGo specific use) https://zig.news/kristoff/building-sqlite-with-cgo-for-every-os-4cic
Investigate if the Zig cross-compiler can build mosh itself, and if such a mosh build can be linked with CGo for go-mosh.
Ideally, we can use it to generate static binaries (including the protobuf dependency).
It would be further fantastic if it can cross-compile for multiple operating systems (Linux, macOS, even-Windows?) for multiple architectures (x86-64, aarch64).