 Use files instead of strstreams for delayed output,  and fix a missing ends in case output code.
 Use files instead of strstreams for delayed output,
 and fix a missing ends in case output code.

themperek/iverilog,themperek/iverilog,themperek/iverilog,CastMi/iverilog,CastMi/iverilog,CastMi/iverilog