Reorganized correct dependencies to io_seg.h