Makefile updates for tls.tcl.h to work for sh. Needed for FreeBSD.
Made makefile optimizations.