Fixed warnings and typo in Makefile