updated the Makefiles to be linux-friendly