Turkish PM hints at pact on judicial changes