Error packaging HTML5 when using third party libraries for websockets

This is the library i am using: WS2tcpip.h.
It works when i package for windows, but not for HTML5. Thanks!.