-Made threadsafe
-Switched compiler from g++ to clang