Makefile and warning cleanup