OpenCL fixes for OpenCL 1.1 embedded profile

static function qualifier replaced on inline to enable kernel compilation with OpenCL 1.1 embedded profile.