Support latest MinGW releases. Support building on linux. svn path=/trunk/; revision=3454
svn path=/trunk/; revision=2445