Global properties of indefinite metrics with parallel Weyl tensor