Update cygwin specific black magic.

Inspired by following patch from PostgreSQL.
http://www.postgresql.org/message-id/attachment/29189/postgresql-9.3beta1-cygwin.patch