Small code cleanup.

Declare static variable as static and external as extern.