cleaned up makefile and warnings