Add snprintf wrapper for GCC 8.2/3