GRIM: fixed compilation on AmigaOS4