Use iosfwd in headers, where possible

Move includes of IO headers into source files