win32: add snprintf implementation