perf llvm: Use strerror_r instead of the thread unsafe strerror one