Update makefile

Make it more friendly to more systems