Transition from Dirac points to exceptional points in anisotropic waveguides