Fix win32/win64 build with recent mingw

* src/configure.ac: Add check for 32 and 64-bit ws2_32 library header