a few crashes fixed:

- some socket functions replace with already implemented in socket proj
- windows sockets error handling fixed
- unsupported MSC++ printf modifier "%zd" replaced with "%Id"
unnecessary preprocessor conditions removed for string functions in favor of symbols defined in libcompat