Use pkg-config to retrieve LDFLAGS and CFLAGS for geoip.

Tested on Linux and OSX. This gets rid of warnings about non-existing directories (like /opt on OSX).