Scoping rules for static global variables