Use __cdecl rather than __stdcall for icalls on Windows 32-bit