added threads library dependency