Use std::error_code

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