remove va_arg hacks in printf core with undefined behavior