Fix makefile to make dist builds work with the new noui.h