Added pkg-config support

This patch adds pkg-config support. This has been tested on OS X and FreeBSD using the expat parser. No tests with the libxml parser have been made.
I'm not sure if I should also add resolv to `Requires:`.