Add all functions to linklib

Also contains a workaround for Amiga library functions not being able to
return structs.