discover/device-handler: Include makedev() from sysmacros.h