Fix building shared lib for zlib on Cygwin