Fix Zlib and OpenSSL build on win32
Partially fix Zlib and OpenSSL build on win64