adapt make files to the latest ROOT and C++ versions