Make some variables static.
Silence MSVC warnings.