Cygwin fixes

These patches should get the build to run on Cygwin without issue. I've never used CMake before, so these might be a bit hacky. Some dependencies were gperf, ragel, docutils, rst2pdf, out of repo versions of libtool and cmake, and ["wine"](https://gist.github.com/rossy2401/8350381). wget also had to be configured to search for certificates in the right directory.

I have no idea what's going on with the libgpg_error patch, but there's a similar one here:
http://lists.gnupg.org/pipermail/gnupg-devel/2013-January/027299.html