Applied K.Petrov patch to get rid of compiler complain under Linux and build with websocket support under Linux