Improve diagnostic messages for pkg-config.