Abbas agrees to extend peace talks if Israel freezes settlement building