fix gpu::DeviceInfo compilation under linux

glibc defines major and minor macros
which conflict with  gpu::DeviceInfo methods with the same name
Merge pull request #1036 from jet47:fix-gpu-deviceinfo