Remove use of forbidden 'iostream' header.

Also obsessively reorder the headers to be in something closer to alphabetical order.