Fix compilation error related to PortSwitchStatistics refactor.