Greek police used teargas on Thursday to disperse crowds gathered outside parliament protesting a deal over the name of Macedonia.