[PATCH 6.12 506/826] perf build: Add missing cflags when building with custom libtraceevent