Fix single-thread compile with no link to boost_thread