[zlib] osx fixes