Fixed a bunch of *bsd warnings
Merge pull request #513 from LocutusOfBorg/fix-warnings-2

Fixed a bunch of *bsd and hurd warnings