Fixes for zlib on other platforms