patch MacOS NVCC boost::thread issue

Solves the problem described in #1009 .