Fix sockets for MSYS2/MinGW.