fixes compilation bug for environments with libbz2, but without libz