Make rarch_zlib.c more generic