More Makefile fun

I noticed one or two more typos in the makefiles and fixed them, and tried a new Linux compile. Necessary changes have been made. This also should now compile seamlessly with older versions of MIDAS.