use gethostbyname from the stdlib since the event version doesn't handle
/etc/hosts correctly, fixes #29
Merge pull request #30 from AndreaCrotti/use_gethostbyname_in_stdlib

use gethostbyname from the stdlib since the event version doesn't handle /etc/hosts correctly, fixes #29