perf tools: Fix build error on read only source.