Added multithreaded mode for test_gl and FPS counter