Check for kqueue(2) use on OS X.

- It appears to be buggy at least on 10.8.3, add a check in graphite_init()
  which involves making it return something to indicate an error.

- Catch small memory leak, creating new evdns_base's on every connection
  attempt and only freeing the last one upon success.