Implement generation of builds for cygwin targets.

Hello again!

As per request, this set of changes should implement the generation of builds for cygwin targets correctly, and should have no impact on other platform targets.

Possibly so, but I'd think the same would hold true for the mingw312 target, on which these mods are based.