add a simple makefile and fix warnings