Workaround for standard strictness enforcement on OS X

Use platform specific logic to avoid known OS X pitfall; see http://wiki.tiker.net/OpenCLOddities