Add pthread.c for some phread function.