configure: use pkg-config helpers