Fix build error for simulator.