removed typedef pid_t for windows
putting ifndefs around the pid_t so it works with ruby 2 on win64, #411
Avoid leaking timers when doing DNS resolution

Previously, EM would start a timer whenever it connected to a DNS
server and never stop that timer.

Instead, only start the timer when a request is sent (meaning that the
timer isn't started when connecting to the DNS server if the result is
answerable from /etc/hosts), and stop it when there are no further
pending requests.

Based on patches by Greg Brockman <gdb@stripe.com>
Merge pull request #489 from ebroder/timer-leak

Avoid leaking timers when doing DNS resolution
Merge remote-tracking branch 'upstream/master' into patch-1
Bug fix for windows: Build error
Bug fix for windows: closesocket
removed 'then'
it works
change priority order of rb_thread_call_without_gvl
Merge pull request #503 from hsbt/fix-fd_select

Fix build error on Ruby 2.2.0
fixed build error on Ruby 1.9
Merge pull request #508 from hsbt/fix-ruby19

Fixed build error on Ruby 1.9
Merge pull request #497 from u338steven/patch-1

Bug fix for windows: closesocket (Issue #447)
Handle deferred exceptions in reactor thread