Make sure that panic's during finalization are handled by the custom panicproc not by the default panicproc, because stderr might not be available. 
When the default panicproc is in use, this doesn't make any difference.
workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]
workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]
revert mistaken commit of experiment
Tcl_SetResult -> Tcl_SetObjResult
merge trunk