libwebsockets update and some other memory fenagling