SDL: main: Unify command line handling between standard Windows and GDK targets.

[Couldn't obtain the patch due to network issues; please check the above link instead.]