Fix Linux and Windows device class selection.