posix: fix crt0 so it calls exit() rather than _exit(). This now means atexit handlers get called.
libload: register fini functions with atexit