add -static-libgcc -static-libstdc++ for test executables when using mingw
fix GetExecutablePath test for mingw
Merge pull request #11 from tkelman/testexes-stdlib-static

Link test exes statically to libgcc, libstdc++ for MinGW