Use std::error_code

Now can use std::error_code and boost::error_code in yam ail
“system_error” exception.