Adds function nodethread to library