Try put this conditional defines:
ZLIB_DLL;ZLIB_W INAPI;Z_PREFIX

on your BPR file.

Best regards,

wlad.