socket fix for linux