replacing DiagnopsticCollector for compatibility with the JavacTool on my mac