improving error diagnosis.

This is done to better understand reported problems such as https://issues.jenkins-ci.org/browse/JENKINS-20618 and https://issues.jenkins-ci.org/browse/JENKINS-20114 where jzlib can be seen mysteriously failing.