win32, provide snprintf only for visual studio

Other compilers (e.g. mingw) may have it onboard.