perfcounter tools: move common defines ... to local header file