merge of #2962 MacOS build not statically linking libidn and libz