Move trace reader’s statistics mode implementation to a separate file
Port upstream fixes allowing trace instrumentor to build against CLANG 3.1