MinGW is typically configured to build console applications by default.
So in order to build a normal Windows GUI application, this flag is
needed when linking. Otherwise, a console window will be opened when
the program is run.
Other Windows compilers probably have similar options which can added to
the probe in the future.