use pkg-config, and a small doc fix