Да, вот здесь нашёл решение: http://mingw-users.1079350.n2.nabble.com/Link-to-ws2-32-or-wsock32-td6332441.html