core.stdc.stdio: pull standardized C I/O functions from Phobos; some improvements