Add missing header (compilation error with GCC on linux)
Fixed libev timer updates under OSX.