Move the cpuid functionality into a separate library package so that it can be easily re-used by other sources.