Changed calling convention to __cdecl for Win32