Remove the last usage of PTHREADs in linearizer.
Fix GLUT / NOGLUT.
Polish CMakeLists.txt