Well, if you want, using mingw, produce gui application, simply add GUI to your main configuration (this will correctly translate to -mwindows on commandline for GCC, but also to proper switch with MSC compiler...).
Alternatively, to put any option to commandline, you can use Package organizer.