Implemented libuv DNS resolver.

This fixes potential problems with the default libgadu
resolvers: fork might cause problems when using multiple threads,
pthread is spawning threads on its own.