[71cb5d4dec]Added conditional definition of MODULE_SCOPE for cases where it does
not exist (Building basekits, tclkits, with Thread directly compiled
in). This required modification of some header inclusions as well, to
have the definition in one place instead of about four. Added conditional definition of Tcl_GetErrorLine for the same
reason. Under static build -DTCL_TIP285 is not usable, as
USE_TCL_STUBS will be missing. And the TGEL changes are TIP 336 also,
i.e. unrelated. And lastly added conditional definition of the package version, again
for cases where it is missing due to Thread configure not invoked.
(user: andreask,
tags: trunk)

[25de27301c]Fix bug reported by Gustaf Neumann: just found a bug in thread 2.7.0. When NS_AOLSERVER is defined, thread2.7.0
defines for every function a second tcl-command called cmdPtr->cmdName2,
(e.g. sv_set something abc 123), which gets 1 as ClientData passed.
The command implementations treat the passed clientData as Container *,
which seg faults, when 1 is passed.
(user: jan.nijtmans,
tags: trunk)