CMake: Don't smash CMAKE flags when using posix threads.