Import fork of mysocketw to preserve the source code. Provides cross-platform socket abstraction.