HID: allow to build on OSX (doesn't work though)