Allow compilation on many systems.

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