updates to makefile and fix warnings from -Wall