fix disabled stdio (and remove trailing spaces)
Merge pull request #2156 from cremno/fix-disabled-stdio-2

fix disabled stdio