Tweaked cmake configurations for third-party libraries
Corrected CMakeLists.txt for libtiff