Use pkg-config for portability

Instead of just Ubuntu support, this now works on Arch Linux, probably Fedora/Red Hat/Centos too. pkg-config was built for this reason.

NOTE: dunno about OS X, but I hear homebrew does package pkgconfig .pc files