Fix the perf tool build

Use the cross-compiling $(AR) and $(CC) to correctly build liblk.a. The host
tools are used otherwise, causing linking failures when building perf.