runtime: Rewrite amiga-library.m for AmigaOS 3