Use ws2_32.lib instead of wsock32.lib
No msvccompat or nekoapi for mingw
Report error correctly when 'new Process' fails.  Fix mutex-lock on text output.  Improve support for mingw - copy required dlls if possible