upload src & remove some thread local global variables
check valid work_thread_num & Makefile changed