configure: use pkgconfig for the X11 checks