added missing pthread lib for setname()