links: add optional X11 support

Closes #18022.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>