Add a Tcl shell to the LEF/DEF viewer app.
Also make appropriate updates for Tcl 8.6;  Tcl_SetMainLoop now performs some thread initialization which
needs to happen only after Tcl_Main has set up some data structures.  Running Tcl_SetMainLoop from the
Tcl_AppInit proxy appears to solve the issue.