Fix a bunch of functions that were declared static then defined not-static.

Per testing with a compiler that whines about this.