Added makefile and fixed two warnings.