zlib: obey LDFLAGS for tests

Quiets another build warning, this one about GNU_HASH in the zlib test binaries.