Add setsockopt support