Currently, `hat_to_static` and `hat_to_dynamic` assume we are building for the same target as the host. Integrate a cross linker such as [lld](https://man.archlinux.org/man/extra/lld/ld.lld.1.en) for cross compilation.