Fix build issues with the hardware simulation.