Add static to some variables

not really in the sense where I'd consider a `g_` prefix relevant. (this is already mentioned in the coding style, fyi)