Fix dependency on boost::thread on OS/X