[packaging] make X11 a build conditional (original patch from foolab)