(maint) refacter kstat into its own resource

kstat is a kernel statistics API that present in solaris, and other
operating systems (like FreeBSD). This patch adds a c++ API around the
kstat and related structures so that they can be used correctly, and error
handling is simplified.
(maint) use the new kstat api for uptime_resolver
(maint) use the new kstat api for processor_resolver