On the automorphism group of a second order structure