Improved MinGW support
Merge /home/gfannes/gubg
wip on pa