cast to char * to avoid compiler warnings for get/setsockopt