fix bug in featuredetection. fix makefiles. work on gui, util, etc.