reseting of reporter added so compilation can be run all at once. No
need to run phases one after the other explicitly.

Unfortunately for now the whole error buffer is cleared and reporter
reset.