Simplify variable declarations using C99 constructs, removing unnecessary static keywords