Fix ASIO/Thread compatibility #56