issue #2305:use c++11 thread instead of pthread for WebSocket.