Solve compile errors