Fix OSX compilation for nvcc with opencv