modify to refactor CL-CUDA.API.DEFKERNEL package
minor fix
modify to handle both memory block and device memory properly in DEFKERNEL macro expansion