Changed socket shutdown function to pure unix functions to remove dependency to libinetsocket.c file.