fix linker error undefined reference to `pthread_create'