clicking sound when moving selector lever in and out of Park? on 2007 Subaru Impreza

There is a slight clicking sound in the selector lever when you move the shifter in and out of Park. There is also a click in the passanger side dash when you turn the hedlights on. What is this, and is it normal or a problem? If so how do i go about getting it fixed?

2 answers
The clicking sound is the shift lock disengaging so you can move the shifter.
And the click on passenger side is the headlamp relay, normal