fixed: link other targets to pthread