bugfix: add some missing iostream includes

Added some missing iostream includes in several files which broke
compilation on some platforms.