Refactor OS/CPU-count detection

Add: uClinux, FreeBSD, GNU/kFreeBSD, NetBSD, OpenBSD, DragonFly, Darwin, SunOS