fix compilation flags for zlib