Integrate CMake subtree using .gitexternals and fix compiler warnings