core.stdc.stdio: move standardized C I/O functions from std.stdio; minor improvements