Forward stdio properly