Fixed socket header problems