use winsock library when configured in an MSYS2 environment