check_cpu - add a local copy of the cpuinfo library.
Link check_cpu to the statically built library if the external library is not available.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
cpustats lib - rename some structs and functions

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>