Small fixes in HttpClient, SocketPool and native library.