A require like lib for threads