[Fix] updated socketw for modern compilers