Fixed issue with building without Tcl threads