fixed the pthred_join issue
Added Pthreads