Autodetect support of OpenCL global work offset

Workaround driver bugs like #581