solve socket compile error