Fixed makefile and warning