perf tools: Fix _GNU_SOURCE macro related strndup() build error