Once this variable is set, all the linking bits should be picked up.
At what stage does the NWChem python interface require libz? Most of my development occurs on a ubuntu 14.04 box and I have not seen this failure.
If you really need any extra library, you can add it to BLASOPT (as a temporary fix)