ON GOING MERGE. saved in branch.
small compile fix for thread_t
PARTIAL Merge branch 'tthread_merging'
Conflicts:
	CMakeLists.txt
Only retrieved thread_t to support different return types and timer.h for tests
fixing template threads compilation and wrote test (duplicate from normal thread test)