Fix socket manager loader to use a C-style cast on the function pointer