libwebsockets v 1.0 related changes.

libwebsocket_create_context requires more params.
use proper pointer casts.