Use reliable, modern pkg-config
Instead of manually looking for pkg-config and manually calling it, just use the existing M4 macros for this. We already depend on both the M4 macros and a working pkg-config for checking several modules anyway.
Fixes #5.