Catch pkg-config errors as requested by minrk.