Update thread library