Add stc-less version of genCfunc to avoid mangling issue on OSX
Hack-hacky hack hack