Adding a small lightweight thread library.