Fixed  breaking changes to API (sock_t * vs. void *)