who was the longest ruling non-royal head of state post-1900