clean up makefile, make it compile on more compilers