HPCC-9984 Compile direct from a version control system

Don't allow workunit to set the hook - would be some security concerns.

Define an environment variable for the current thread index, in case anyone
wants it for an svn plugin.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>