Fix the build on platforms without hotplug support.