new mostly-C crt1 implementation