Support pkg-config

Fixes #248.