Updated makefile, fixed -Wall warnings