Fix linking of extern "C" header function. run.py now works cross-plat.