add C11 thread creation and related thread functions