std.stdio: improve standardization of C I/O functions across runtimes