fixed socket compilation