WIP: stdcall name mangling

ref #7375
I think you need to do `fn->setCallingConvention(cc)` first for this to work.