Replace _wcserror_s for Windows XP compatibility