configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.