add pthread for install packages in clib-install.c