On Linux there is no appHandle in mainArgs. Instead os.Args needs to be
converted to C equivalent argc/argv. Lots of work to copy an array
of strings, and it doesn't look too safe, using malloc and lots of
pointers. Let us hope that it won't explode.