Add prototype cache to cuda_extcopy.
Make it compile without warnings.