Workaround for [http://sourceforge.net/p/mingw/bugs/2065/|MinGW bug #2065]. 
Both MinGW and MinGW-w64 (32-bit) are affected. 
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
Cherrypick [132bf978f2] from trunk: 
Workaround for [http://sourceforge.net/p/mingw/bugs/2065/|MinGW bug #2065]. 
Both MinGW and MinGW-w64 (32-bit) are affected. 
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 don't enable command line globbing either by default.
Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 don't enable command line globbing either by default.
Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 don't enable command line globbing either by default.
merge-mark
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c] are no longer necessary.
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c] are no longer necessary.
Fix for drawing lags on OS X Mavericks; thanks to Ned Deily for report and Daniel Steffen for patch
Fix for drawing lags on OS X Mavericks; thanks to Ned Deily for report and Daniel Steffen for patch
Fix [3603436fff]: png save has wrong  component indexes
Fix [3603436fff]: png save has wrong  component indexes
Some refactoring as initial attempt to fix [f214b8ad5b]. Not finished/tested yet.
Make "menu" a normal command, initialized like any other Tk command.
Put extern "C" guards around all stub table struct definitions, 
so it is usable to be used for C++ compilers as well without the danger of modifying the calling convention. 
For tkDecls.h, ttkDecls.h tkIntXlibDecls.h is was no problem, because tk.h, tkTheme.h and Xlib.h
already contain those guards. But not for the other *Decls.h files.
Put extern "C" guards around all stub table struct definitions, 
so it is usable to be used for C++ compilers as well without the danger of modifying the calling convention. 
For tkDecls.h, ttkDecls.h tkIntXlibDecls.h is was no problem, because tk.h, tkTheme.h and Xlib.h
already contain those guards. But not for the other *Decls.h files.
Fix [c0cc9fd153]: PNG parser does not support uppercase format string (using -format)
Fix refcount bug in FreeFontObjProc. Could result in freeing a TkFont which was already freed.