ModuleThreadExecutor added and tweaks

Module Thread executor is added for additional testing of opengl issues

In addition, there were a couple small code tweaks.