Must link to SDLmain.lib on Win32.