properly use stdcall on windows. fixes #13