Fix MinGW build

Previous commits changed `libcurl` dependency to `libcurl_imp`, but it was not the case on mingw toolchains.

Add `libws2_32` as standard library, so that all executables can automatically link to it.