Use pkg-config to configure libcheck

where available