Fix a bug where PCI id's of 0x80 or higher got sign extended in output
due to being cl_char in AMD's struct. 86:00.0 was shown as ffffff86:00.0
Translate nvidia's 'devfunc' to device and function.
Fixes for building on OS X: Add macros missing in Apple's headers,
and add an "osx" build target with proper linker flags.