The cstdio header is not included indirectly with some compilers, e.g.
GCC 14, therefore it needs to be included explicitly. The patch is
adapted from upstream commit.
Closes: https://bugs.gentoo.org/921739
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>