On the static and dynamical transition in the mean-field Potts glass