Fixed non-const global variables.
Non-const global variables could not be used in several compilation units.