Improve build script error checking.

This commit adds a check to make sure pkg-config is present on the
computer building libzmq.
This particular line was stolen from the debian mailing list.
See https://lists.debian.org/debian-dpkg/2011/04/msg00054.html
Merge pull request #1223 from xaqq/build-script

Improve build script error checking.