Public good provision under dictatorship and democracy