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.