Update cpuinfo.nim

sys/types.h needed for macosx and freebsd
sys/param.h needed for openbsd and netbsd
Merge pull request #1559 from lorxu/devel

Update cpuinfo.nim to compile in bsd and macosx