cmake based compile more flexible in finding boost now.
Added linux signal handler so the processing of events can be interrupted by Ctrl-C on the console and the root file is properly saved.e
removed unused typedefs