Using zlib with ROOT 5.34/26

I installed ROOT by using FairROOT scripts on Linux Mint… In previous installation everything works fine but in newest version of installation I have problem with creating dictionary for one of my class that use gzFile. During compilation I’m receiving errors in dictionary e.g. " error: expected ‘}’ at end of input." or:

Error: cannot open file "zconf.h" /usr/include/zlib.h:35: Error: class,struct,union or type voidpf not defined /usr/include/zlib.h:80: [ 95%] Error: Symbol z_const Bytef is not defined in current scope /usr/include/zlib.h:105: Error: Symbol next_in is not defined in current scope /usr/include/zlib.h:105: Error: Symbol uInt avail_in is not defined in current scope /usr/include/zlib.h:106:
I can set PATH to point to zconf.h, but then I receive another errors.I found some workaround by hiding gzFile :

#indef __CINT__
#include <zlib.h>
#ifndef __CINT__
gzFile file

By using this workaround I can build my class, but later I had to set full path to in each macro (or add path to directory to LD_LIBRARY_PATH… I think that there is some problem in configuration of ROOT during installation.
Does anybody know how can I reconfigure ROOT installation to enforce using libz?