std.stdio: clean imports

~~Depends on https://github.com/D-Programming-Language/dmd/pull/4142~~ Merged.
See also #2731 
I see. It would be nice if we reduced this to a small testcase and file a bug against dmd.