libhid: modernize