patch MacOS NVCC boost::thread issue

Solves the problem described in #1009 .
Thanks for fixing the warning.