perf tools: Use linux/ctype.h in more places