libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.