Workaround build error for mingw-g++
mingw-g++ does not correctly support the full std::errc namespace as
worded in the standard[1]. As such, we cannot reliably use all names
therein. This patch changes the use of
std::errc::state_not_recoverable, to use portable error codes from the
portable llvm::errc equivalent.