fix several static variable declaration that prevent multithread rendering
remove unrelated/unused variable
Merge pull request #5 from chrox/master

fix several static variable declaration that prevent multithread rendering