CMakeLists.txt: fix some library searching

Boost thread is no longer needed.

On Linux we need to search for tinyxml package instead of tinyxml2.