Some windows environments don't have _snprint_s

Do an alternative version for them.
That happens for example with our windows buildbot with mingw32-make.
diff --git a/library/platform.c b/library/platform.c
index 0606214..3161a4c 100644
--- a/library/platform.c
+++ b/library/platform.c
@@ -75,7 +75,16 @@
         return( -1 );
 
     va_start( argp, fmt );
+#if defined(_TRUNCATE)
     ret = _vsnprintf_s( s, n, _TRUNCATE, fmt, argp );
+#else
+    ret = _vsnprintf( s, n, fmt, argp );
+    if( ret < 0 || (size_t) ret == n )
+    {
+        s[n-1] = '\0';
+        ret = -1;
+    }
+#endif
     va_end( argp );
 
     return( ret );