updated makefiles to work on linux