(socket_connection): Add conditionals for HAVE_KRB5_ERROR_TEXT and