Build pthread main