Fix issue #1689
Convert int to string for concatenation to exception, fixes #1564
Merge pull request #1697 from cmouse/fix-issue-1564

Convert int to string for concatenation to exception, fixes #1564
Check for  __FreeBSD_kernel__ as per https://lists.debian.org/debian-bsd/2006/03/msg00127.html, fixes #1684
Merge pull request #1698 from cmouse/fix-issue-1684

Check for  __FreeBSD_kernel__ as per https://lists.debian.org/debian-bsd...
Merge pull request #1696 from cmouse/fix-sissue-1689

Fix issue #1689