Pass atexit from the linklib