[1/2] fix thrift build on OSX

Maybe even an ``#ifdef __linux__``? Correct me if I'm wrong on this, but eventfd is purely a linux thing. No support on OSX/BSD/Windows as far as I can tell.