add TB_TRACE_DEBUG macro
reimpl event and semaphore demo
fix redirect output for suffix.mak