If you have access to a Windows machine, it might be simpler to install mingw on it and compile on it directly. (And mingw's gcc won't generate binaries that depend on cygwin1.dll.) ...