issue #2305:use c++11 thread instead of pthread for WebSocket.
Merge pull request #2987 from dumganhar/iss2305-std-thread

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