editted open_clientfd() to fix segmentation fault from call to connect()