Add _exit, prepare for stdlib builds