Changed control object so it adopts to the new libwebsocket calls on the
Linux platform.