Fix size of value passed to setsockopt