Workaround for compiling with CUDA/openmpi on MacOSX.