Fixed compilation issue in client connection