modify Makefiles to accommodate some environment