Nile dam talks make progress but legal issues remain