Fixed gpu modules build with CUDA 5.5 RC (master branch)

Backported https://github.com/Itseez/opencv/pull/948 to master.