who is the longest ruling non-royal head of state