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