Use only zlib functions in trace.c that are available in the zlib shipped with R