Fixed linking with Boost.Thread on Windows.