We use a static library for zlib. If you defines ZLIB_SLL, and after defining ZLIB_SLL, you still need to define ZLIB_INTERNAL.