This patch touches DependencyTable.java to fix a bug
with parsing dependencies. It modifies
CaptureStreamHandler.java to prevent Ant from hanging
when the exec'ed process fills the stdout buffer.
Finally it touches a number of Gcc related files to
correctly detect mingw in a similar manner to detection
of cygwin and the linker then creates dlls with
appropriate filenames (e.g. foo.dll instead of libfoo.so).