Improved Makefile. Fixed errors raised by -Wall flag.