[PATCH for 4.9 0/4] tools/perf: Backport fixes for 4.9 for newer toolchain