@David-Healey Most of those errors were just stale files that a make clean didn't get rid of, I needed to remove the build folder completely.
The error relating to DELETE is caused by one of the include files on Linux systems declaring a DELETE macro and this conflicts with your enum.
A very minimal PR to unset the macro seems to solve it.