Added libz to makefile and main.c