Fix resolution errors, compiler builds stage1