add pthread suppert