Currently rustc generates WinMain function with cdecl calling convention (src/librustc/middle/trans/base.rs), but Win32 API docs say stdcall is right.
Linker works because we actually export it as "WinMain@16", but I think it's a hack and should be fixed.