move some socket stuff to iputils to slim down metronome.cc