made this old segmentation tool compile again