[#1930] make global variables in xmsLib.cpp static as they were colliding with symbols in a plugin and causing the agent to hang indefinitely on dtor of the condiiton variable