Fix build with MinGW with cmake

The main problem is this block adding the .libs to CMAKE_C_STANDARD_LIBRARIES. Cygwin doesn't use .lib files, and the entire thing is redundant anyway. wsock32 shouldn't be used anymore / ws2_32 replaces it, and ws2_32 is already checked and added to the normal libraries.