Fix clang compile issue
Merge pull request #1 from dlackty/fix-OSX-compiling

Fix OS X compile issue
modify test
Merge remote-tracking branch 'origin/master' into use_epoll