Updating CMake version/adding a missing ROOT component (needed in R24, seemingly not needed in R21) and fixing a few compiler warnings. So not specific to R24, but needed to properly compile in R24.
Tagging @camccrac @mlyukova, as they did the work :)