Remove old Windows-only implementation of keeping main outside the rts