server features for libwebsockets in the cocos2d-x

libwebsockets was imported into cocos2d-x for external library.
But the server features is missing.

How to build libwebsockets for iOS and android ? Can someone share the build project for me ?

Thanks!