Cygwin: In stead of checking whether the win32 part is configured properly, just configure it when needed. 
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)