perf tools: Fix build failure on perl script context