AROS: implement their weird errno handling