make setsockopt take an int