improve polarssl error info
fix compile error for linux
add TB_TRACE_DEBUG macro
reimpl event and semaphore demo
fix redirect output for suffix.mak