Upgrade libevent to release-2.1.12-stable

Change-Id: Id26c13a4fc1e140627d8869de2b6e2929f8a2a7b
diff --git a/evthread-internal.h b/evthread-internal.h
index 5fdf316..83e409f 100644
--- a/evthread-internal.h
+++ b/evthread-internal.h
@@ -38,7 +38,7 @@
 
 struct event_base;
 
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__CYGWIN__)
 /* On Windows, the way we currently make DLLs, it's not allowed for us to
  * have shared global structures.  Thus, we only do the direct-call-to-function
  * code path if we know that the local shared library system supports it.