fixed triel tcl registration, makefile fixes