Zlib link fix

Fix for issue #4742.  The change puts `-ljulia` before `$(JLDFLAGS)` because the former uses symbols (e.g. `compress2`) from `libz.a` that are satisfied by the latter (`$(JLDFLAGS)` contains `-lz`).