Implemented bufferevent_socket_connect_hostname_hints()

* Implemented bufferevent_socket_connect_hostname_hints so that ai_flags (such as AI_ADDRCONFIG) can be specified.
* Added a simple unit test