configure: fix and simplify xlib check