link examples to pthread to fix builds