(Glide64) Cleanups in util.c - declare variables at top of function