Add support for get_total_cpus on *BSD and Solaris.
Allow compilation on non-x86 platforms.
Add cpuid_get_total_cpus to allow getting the total number of CPUs on systems without CPUID.
Fix some line endings (make them consistent on each mixed-EOL file).

Sadly, there's no consistency for the whole project, but I don't
want to mess with it now.