Test: only use _snprintf with pre-VS2015
Infuriatingly, Visual Studio has not supported C99’s snprintf until VS2015.
Modify a couple of workaround hacks to only apply to pre-VS2015.
This is more than just a cleanup. snprintf guarantees null termination, _snprintf does not! The return values are also different, though rarely used.