Add zlib and libpng to dependencies.