Add switches to x11 and Tcl/Tk

Two switches are added to allow users turn off non-crucial components, namely x11 and Tcl/Tk.