Core: Use an enum for the Gekko exception flags instead of defines

More consistent with the rest of the constants in the file.