Add compat/snprintf.c for systems that return bogus