Added the pthread dependency