[packaging] Make X11 related buildrequires and subpackages optional.