Here, in libwebsock_init_flags, we want to pass on the flags int to libwebsock_init_base, yes?  ctx = libwebsock_init_base(base, flags);