Also link pthread on linux.