use Tcl_SetResult and Tcl_GetStringResult

This is neccessary to compile linuxcnc with tcl/tk 8.6