Makefile worked out, fixed some warning