Fix server manager includes again
Fix dlopen for protocol modules
Switch casting spawn functions to C-style cast since static_cast won't cast function pointers like this