Fixed setsockopt usage