tcl + tk: Debug build fixes