WIP: stdcall name mangling

ref #7375
ignore this -- i'll remove it from the final pull request. it is supposed to be part of a different commit.