std.stdio: improve standardization of C I/O functions across runtimes
std.stdio: use getc_unlocked/putc_unlocked functions for OSX/FreeBSD