add missing include.
Make IO interface per-file.

Allows us to use multiple different IO interfaces in the same
process.