Fix crash on AmigaOS4