Add FreeBSD variants for linux code. The include in cpu.cc is not actually necessary, so I did not include anything for FreeBSD.
mentioned in commit 3ea002fd