This compiles with no changes under a fresh cygwin install (needed an excuse to get it on the new harddrive anyway), there is a cast warning on line 399, though.
And of course the strip command doesn't work 'cause there's a ".exe" added, but that's not a problem.