Turn errc and windows_error into enum classes.