Fixed a few IO related compile issues
Revert "Fixed a few IO related compile issues"

This reverts commit 3cbcee8126a50afbf15fe8e268403b2f661598dc.