fix zlib compilation error

on ubuntu 13.04 if -lz isn't the last parameter occurs a compilation error