Fix makefile - build AST object
Fix all warnings