Tweak sources for --with-x/--without-x option.