I don't think avoiding iostream is a good thing, but I leave it up to Leledumbo to decide.
Reason being that under Linux everything is a file and the original code seems to be designed with that in mind..
It may be that a shared library should be notified of the IO handles in the main program, though.
I can see that point if that is what you mean.