Update Tools.h

Support latest versions of libev
Merge pull request #28 from Magir/patch-2

Update Tools.h