conditionally use zlib or libbz2