Libevent client OSX compatibility


#1

Number of small changes required to build Libevent client for OSX. Please see the patch.


#2

@max_romanov,

Thanks for the contribution! We’ll take a look and see if we can incorporate it into our code.