Added missing include 'cstdio' for sprintf

Current branch does not compile because it is missing the include for sprintf (cstdio), and the namespace scoping for sprintf (std::sprintf).