pkg-config support (continued)

As suggested by @genjix, here are my suggested changes for his original PR (#10).

They're minor changes, I have no qualms with them being squashed into the original commit.