Adding stdio include to ensure sprintf is defined