crt0 cleanup

WIP for #756.