Fixed missing include, errno.h and bad prototype for file_open.
Cleanup of report.c.  Still more changes to make, but now compiling as we complete report/pmu.
Added extra details required for report/pmu.