The profile library must come before the C library so that it can use
atexit.