Rather than making static declarations global, get rid of the extern.