Try defining zlib mangle before including headers.