add pthread for install packages in clib-install.c

I add the pthread function in the clib-install.c file for download packages faster