Rivals agree 'in principle' to move peace talks to Libya