Update cpuinfo.nim to compile in bsd and macosx

sys/types.h needed for macosx and freebsd
sys/param.h needed for openbsd and netbsd