Merge pull request #3591
6986861 build: use -mwindows for gui targets when linking with mingw (Cory Fields)