Merge pull request #1737 from libevent/signal-tests Retry tests with SIGALRM on OSX (and fix some related stuff)