Fixes a build problem on platforms where stdio.h is not included transitively. snprintf() is defined in stdio.h.