On some systems, such as Android, threads are not provided via
`-lpthread`.
CMake comes with a built-in module for finding the correct threads
library.
Use it to fix the linking issue on Android and possibly other systems.
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh