add task_scheduler
add pthread in CMakeLists.txt