fix stage0 compile