Fixed compilation error

Added cstdio, because on my and @Emxx52 computers the compilation hasn't been working due to following error: "sprintf was not declared in this scope".