updated makefile to work on generic systems