Add static to some variables

These shouldn't use a `g_` prefix anymore now.