link libcgi only against rrd_cgi since it is only needed there -- Peter Breitenlohner