Fix warnings
Merge pull request #207 from borisz/bz/fix-warnings

Fix warnings for kqueue