Thanks to the dark magic of Cosmopolitan the resulting binary runs natively on Linux, Windows and MacOS.
Compile static binary.
git clone --depth 1 https://github.com/jart/cosmopolitan.git
cp ./shell.c ./cosmopolitan/examples/
cd ./cosmopolitan/
make -j$(nproc) -O MODE=tiny
ls ./o/tiny/examples/shell.com