add c++11 error categories for macos error codes