This is still very broken and it doesn't load well. But at least it compiles! All build errors (and a few warnings though not all) fixed.
This is the code from the 'gimp-2.9' branch of the plug-in, integrated into GIMP's build system.