Fix Makefile. Add some features.