Do not include offset in the work-group function directory
name to avoid recompiling it when the offset changes.
Added the OpenCL 1.1 thread safety as a missing feature.