[Core/CMake] Fix some more reserved identifiers and rename a few defines

These changes will cause merge conflicts :) They have to be done on the new unified realmd repo instead