fix dropmask dereference even when NULL

Signed-off-by: Nikolay Dimitrov <ndimitrov@setelis.com>
openwrt add build makefile

http://libwebsockets.org/trac/libwebsockets/ticket/50

Signed-off-by: tmu <tmu-INVALID@invalid.com>
unify all pollfd lock management

This provides a single place for pollfd event changing,
external locking for that and extpoll management.

It saves about 85 lines of duplication and simplifies the callers.

Signed-off-by: Andy Green <andy.green@linaro.org>