Fixed x86 calling convention on Linux and Win32.