link pthread for ubuntu.