configure: Integrate X11 checks into vaapi/vdpau checks