[Peter Rockett] Improved Makefiles for image segmentation example.