Make MGBenchmark thread-safe
Make global vars static to limit their scope
Merge branch 'thread-safe' into develop

Conflicts:
	Readme.md