fix some thing for kqueue
Merge pull request #19 from yinqiang/master

Little slip