Some minor cleanups.
Minimal use case to show that FindThread doesn't work with CXX only project.