Fixed an error to compile on Linux plus replaced MCError->add with ctxt.LegacyThrow