added cond_destroy to pthread_compatibility