Fixed bug with zlib static linking