Merge pull request #9251 from twadleigh/stdio-hack

Fix #9244
Merge pull request #9282 from twadleigh/release-0.3

Backport: Merge pull request #9251 from twadleigh/stdio-hack