add zlib; some win32 compat code