* ctrace.h: Multithread support.
test_thread.cpp: New test for multithread.
test.sh: compile & run new test.