Fix use of snprintf (which does not exist on all platforms) in auth.c

by replacing it with xmpp_snprintf in order to be consistent with the
rest of the code. Also fixes compile error on MSVC.