Fix #903: respect stdcall calling convention on ctypes functions (Windows)

Also fix an error to give a better message.
Merge pull request #907 from pitrou/ctypes_stdcall

Fix #903: respect stdcall calling convention on ctypes functions (Windows)