Principal bundles over a real algebraic curve