Re-introduce linking to boost::thread.

The asio library needs to link to boost::thread, at least on OS X.

@scottschurr, @josh