Get rid of cuda.h usage

http://code.opencv.org/issues/3981