remove dead legacy code. update examples to new apis. fix global ordering issue with cares inotify fd. require cares and ssl for build now.