[3.1 blocker] Fix FreeBSD support

The new stdcall/thiscall/fastcall bits need FreeBSD support.  I have a test branch for that; currently testing it.