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).
Merge pull request #1 from yrmt/patch-1

Allow compilation on many systems.