Likwid API patch, adapted for Likwid 3.1.2.