Rework makefiles to work with older make.