lib: Determine cpu core count with /proc/cpuinfo.