trace: add build framework for merging trace-events files