Fix xlib link errors.