Allow compilation on many systems.

Everytime I install this I have to adjust the #cgo line with the right flags. Why no simply use pkg-config so it works on more systems. (tried on Mac OS X and FreeBSD).