About another 1/3 of the cmake warnings squashed. As per my previous commit, this needs reviewing and fixing by someone more familiar with the code. There are BUGS here. In mesh_gfx.cpp, for instance, there are two switch statements with conditions but where nothing is done in the bodies. Look at the diff and search for FIXME for bugs; some of which I addressed without knowing what I'm doing, and some of which I couldn't.