Merge error_for_oserror and errno_for_oserror