just trying to do the same thing as [riak_connection_new](https://github.com/basho/riak-c-client/blob/develop/src/riak_connection.c#L51)