cleaning up Makefile and compiler warnings