small changes to make MinGW happy on winsock networklayer (stricter flags)