Update third-party libraries and CMake rules.