add forgotten pthread_join