fix link error on X11