x11 dep only with x option

X11 dependency is only required when installed with the "with-x" option.