link sm_common to pthread