Move some variables into #ifdef
Change uchar2 to short
Merge pull request #2874 from vbystricky:ocl_LUTAMDfix