Fix pointer warnings
Fix socklen_t warning
Fix compiler warnings
Fix pid_t redefinition error