mingw-w64 targeting ucrt doesn't support _CRT_NON_CONFORMING_WCSTOK and only provides the newer wcstok(), so get rid of _CRT_NON_CONFORMING_WCSTOK and port the code the the thread-safe variant.
This in turn leads to a problem with mingw-w64 targeting old msvcrt, which only has the old wcstok(), so add a macro to make it use the old version there.
Note that this likely dropps support for Visual Studio 2013, since only 2015 has the new wcstok()
mingw-w64 targeting ucrt doesn't support _CRT_NON_CONFORMING_WCSTOK and only provides the newer wcstok(), so get rid of _CRT_NON_CONFORMING_WCSTOK and port the code the the thread-safe variant.
This in turn leads to a problem with mingw-w64 targeting old msvcrt, which only has the old wcstok(), so add a macro to make it use the old version there.
Note that this likely dropps support for Visual Studio 2013, since only 2015 has the new wcstok()
(the signature of wcstok() was recently fixed in mingw-w64 master, uncovering this issue, see https://github.com/mingw-w64/mingw-w64/commit/40134887fb81f5be451b5c4c)