Fix building shared lib for zlib on Cygwin.
Merge pull request #258 from hashdist/johannr/zlib-cygwin-fixes

Fix building shared lib for zlib on Cygwin