Removing -pthread in app CMake file.

Adding to root. CMake file.